package app.base.root;

import java.util.Map;

import org.apache.velocity.VelocityContext;

import app.base.commons.*;

public class Footer {
	public static String renderTo(Map<String, Object> params) throws Throwable {
		VelocityContext context = new VelocityContext();
	
		context.put("HOOK_RIGHT_COLUMN", Tools.hookExecModule("HOOK_RIGHT_COLUMN", params));
		context.put("HOOK_FOOTER", Tools.hookExecModule("HOOK_FOOTER", params));
	
		return Tools.velocityTranslate(
					Constants.VELOCITY_PROPERTIES_FILENAME, 
					context, 
					Constants.VELOCITY_TEMPLATES_THEMES_PATH_DEFAULT + "/footer.vm"
				);		
	}
}
